<div class="nav-tabs-custom">
	<ul class="nav nav-tabs">
		<li class=""><a href="{:Url('index')}">列表</a></li>
		<li class="active"><a href="#">编辑菜单</a></li>
	</ul>
	
	<form class="form-horizontal js-ajax-form" method="post" action="{:Url('edit_post')}">
		<div class="box-body mt10">
			<div class="form-group">
				<label class="col-sm-2 control-label">上级</label>
				<div class="col-sm-8">
					<select name="parentid" class="form-control select2">
						<option value='0'>作为一级菜单</option>
						{volist name="menu_list" id="vo"}
                        <option value='{$vo.id}' {if condition="$vo['id'] eq $parentid"}selected{/if}>{$vo._name|raw}</option>
                        {/volist}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">菜单名称 <span>*</span></label>
				<div class="col-sm-8">
					<input type="text" name="name" class="form-control" placeholder="菜单名称" value="{$name}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">应用 <span>*</span></label>
				<div class="col-sm-8">
					<input type="text" name="module" class="form-control" placeholder="应用模块" value="{$module}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">控制器 <span>*</span></label>
				<div class="col-sm-8">
					<input type="text" name="control" class="form-control" placeholder="控制器名称" value="{$control}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">方法 <span>*</span></label>
				<div class="col-sm-8">
					<input type="text" name="action" class="form-control" placeholder="操作方法" value="{$action}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">参数</label>
				<div class="col-sm-8">
					<input type="text" name="data" class="form-control" placeholder="参数方法 例:id=3&p=3" value="{$data}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">图标</label>
				<div class="col-sm-8">
					<input type="text" name="icon" class="form-control" placeholder="不带前缀fa-，如fa-user => user" value="{$icon}" />
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">备注</label>
				<div class="col-sm-8">
					<textarea name="remark" rows="3" class="form-control" placeholder="备注">{$remark}</textarea>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">状态</label>
				<div class="col-sm-2">
					<select name="display" class="form-control select2">
                        {volist name="displays" id="vo"}
                        <option value='{$key}' {if condition="$display eq $key"}selected{/if}>{$vo}</option>
                        {/volist}
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label">排序</label>
				<div class="col-sm-1">
					<input type="number" name="sort" min="0" class="form-control" placeholder="排序，默认0" value="{$sort}" size="16" />
				</div>
			</div>
		</div>
		<div class="box-footer">
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$id}" />
					<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
					<a class="btn btn-default">返回</a>
				</div>
			</div>
		</div>
    </form>

</div>